﻿using UnityEngine;
using System.Collections;

public class Missile : MonoBehaviour {

    float randomX = 0;
    float randomY = 0;


	// Use this for initialization
	void Start () {
        randomX = Random.Range(0.1f, 1f);
        randomY = Random.Range(0.1f, 1f);

	
	}
	
	// Update is called once per frame
	void Update () {
        transform.position += Time.deltaTime * DataStorage.Instance.GetMissileSpeed() * new Vector3(randomX, randomY, 0);
	}
}
